package org.xbzheng.boot.service;

import org.springframework.stereotype.Service;
import org.xbzheng.boot.bean.User;
import org.xbzheng.boot.dao.UserDao;

@Service
public class UserService {
    private final UserDao userDao;

    public UserService(UserDao userDao){
        this.userDao = userDao;
    }

    public User query(User user){
        if (userDao == null){
            return null;
        }
        return user;
    }
}
